<?php
class captcha extends CI_Controller
{
	public function index()
	{
		$this->load->library('captcha_library', NULL, 'captcha');
		
		$code = $this->captcha->getCode();
		$this->session->set_userdata(array('captcha' => $code));
		
		$this->captcha->showImage();
		
		exit();
	}
}

?>